package org.spiderflow.core.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.spiderflow.core.model.User;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    @Select("select id,user_name from sp_user where user_name = #{userName} and pass_word = #{passWord}")
    User findByUserNameAndPassWord(@Param("userName") String userName,@Param("passWord") String passWord);
}
